<?xml version="1.0" encoding="UTF-8" ?>



<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
	xmlns:tmt="http://www.massimocorner.com/validator"
	xmlns:spry="http://ns.adobe.com/spry">
	<xsl:param name="DOTNET2"/>


	
	<xsl:output method="xml" indent="yes"/>
	
	
	

	<xsl:template match="Instance">

		 <xsl:variable name="EMPTY_GUID" select="'00000000-0000-0000-0000-000000000000'"/>
		 
<html xmlns="http://www.w3.org/1999/xhtml">
	<head runat="server">
		<title><xsl:value-of select="Name"/></title>
		
		<style type="text/css">@import url(CSS/output.css);</style>

		<script src="JS/YAHOO.js" type="text/javascript"></script>
		<script src="JS/Dom.js" type="text/javascript"></script>

		<script type="text/javascript"><xsl:attribute name="src">JS/<xsl:value-of select="Name"/>-out.js</xsl:attribute></script>


		<script type="text/javascript">
			var dsResults = new Spry.Data.XMLDataSet ( '<xsl:value-of select="Name"/>-out.aspx' , 'ArrayOf<xsl:value-of select="Name"/>/<xsl:value-of select="Name"/>' , {useCache:false}) ;
		
		<xsl:for-each select="ClassAttribs/ClassAttributes">
			<xsl:if test="CType='single'">
			
				<xsl:choose>
					<xsl:when test="Type='DateTime'">
			dsResults.setColumnType ( '<xsl:value-of select="Name"/>' , 'datetime' );
					</xsl:when>
				
				
				</xsl:choose>
			
			</xsl:if>
		</xsl:for-each>
		

		</script>

	</head>
	
	<body>

		<div spry:region="dsResults">
			<table>
				<tr>
					<xsl:for-each select="ClassAttribs/ClassAttributes">
					
					<th scope="col"><xsl:attribute name="onclick">dsResults.sort('<xsl:value-of select="Name"/>','toggle');</xsl:attribute><xsl:value-of select="Name"/></th>
					
					</xsl:for-each>
				</tr>
				
				<tbody spry:repeatchildren="dsResults">
					<tr><xsl:attribute name="onclick">dsResults.setCurrentRow('{ds_RowID}');</xsl:attribute>
					<xsl:for-each select="ClassAttribs/ClassAttributes">
						<td>{<xsl:value-of select="Name"/>}</td>
					</xsl:for-each>
					</tr>
				</tbody>
			</table>
		
		</div>
		
		
		
			
	
	</body>
</html>
	
	
	</xsl:template>
	
</xsl:stylesheet>